package com.dna.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.dna.entity.RoleEntity;
import com.dna.utils.TkMapper;

public interface RoleMapper extends TkMapper<RoleEntity>{

    List<RoleEntity> selectList(@Param("role") RoleEntity role);

    void saveRealtion(@Param("role") RoleEntity ro);

    void deleteRealtion(@Param("role") RoleEntity ro);

    Long queryTotal(RoleEntity role);

    List<RoleEntity> queryPageList(@Param("limit") Integer limit, @Param("startRow") Integer startRow, @Param("role") RoleEntity role);

    void deleteRealtionByIds(@Param("ids")Set<Long> ids);

}